home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1810 / 1810.xpi / chrome / showcase.jar / content / settings / pref-window.xul < prev    next >
Extensible Markup Language  |  2010-01-17  |  10KB  |  192 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay [
  4. <!ENTITY % dialogDTD SYSTEM "chrome://showcase/locale/pref-showcase.dtd" >
  5. %dialogDTD;
  6. <!ENTITY % tabBrowserDTD SYSTEM "chrome://global/locale/tabbrowser.dtd" >
  7. %tabBrowserDTD;
  8. ]>
  9.  
  10. <overlay id="WindowPaneOverlay"
  11.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  12.  
  13.   <prefpane id="paneWindow" label="&tab.window;" onpaneload="windowPrefInit();">
  14.     <script type="application/x-javascript" src="pref-window.js" />
  15.     <preferences>
  16.       <preference id="pref-windowPosition" name="extensions.showcase.windowPosition" type="int"/>
  17.       <preference id="pref-windowWidth" name="extensions.showcase.windowWidth" type="int"/>
  18.       <preference id="pref-windowWidthPercentage" name="extensions.showcase.windowWidthPercentage" type="string"/>
  19.       <preference id="pref-windowWidthModifier" name="extensions.showcase.windowWidthModifier" type="int"/>
  20.       <preference id="pref-windowHeight" name="extensions.showcase.windowHeight" type="int"/>
  21.       <preference id="pref-windowHeightPercentage" name="extensions.showcase.windowHeightPercentage" type="string"/>
  22.       <preference id="pref-windowHeightModifier" name="extensions.showcase.windowHeightModifier" type="int"/>
  23.       <preference id="pref-windowCustomColors" name="extensions.showcase.windowCustomColors" type="bool"/>
  24.       <preference id="pref-windowCustomBackgroundColor" name="extensions.showcase.windowCustomBackgroundColor" type="string"/>
  25.       <preference id="pref-windowCloseWhenParentFocus" name="extensions.showcase.windowCloseWhenParentFocus" type="bool"/>
  26.       <preference id="pref-windowCloseWhenBlur" name="extensions.showcase.windowCloseWhenBlur" type="bool"/>
  27.       <preference id="pref-windowCloseWhenSelect" name="extensions.showcase.windowCloseWhenSelect" type="bool"/>
  28.       <preference id="pref-windowCloseWhenZeroThumbnails" name="extensions.showcase.windowCloseWhenZeroThumbnails" type="bool"/>
  29.       <preference id="pref-windowShowTitleStats" name="extensions.showcase.windowShowTitleStats" type="bool"/>
  30.       <preference id="pref-windowScrollType" name="extensions.showcase.windowScrollType" type="int"/>
  31.     <preference id="pref-windowThumbnailPreferredMinimumSize" name="extensions.showcase.windowThumbnailPreferredMinimumSize" type="int"/>
  32.     <preference id="pref-windowShowOnlyCurrentByDefault" name="extensions.showcase.windowShowOnlyCurrentByDefault" type="bool"/>
  33.       <preference id="pref-windowAlwaysShowScrollbar" name="extensions.showcase.windowAlwaysShowScrollbar" type="bool"/>
  34.     </preferences>
  35.     <tabbox flex="1">
  36.       <tabs>
  37.         <tab label="&windowTab.general;"/>
  38.         <tab label="&windowTab.attributes;"/>
  39.       </tabs>
  40.       <tabpanels flex="1">
  41.         <tabpanel orient="vertical">
  42.         <groupbox>
  43.         <caption label="&scrolling.caption;"/>
  44.           <hbox align="center">
  45.             <label id="windowScrollTypeLabel" value="&scrollType.label;" control="windowScrollType" />
  46.             <menulist flex="0" id="windowScrollType" preference="pref-windowScrollType" oncommand="windowScrollTypeChanged();">
  47.               <menupopup>
  48.                 <menuitem value="0" label="&scrolling.none;" />
  49.                 <menuitem value="1" label="&scrolling.vertical;" />
  50.                 <menuitem value="2" label="&scrolling.horizontal;" />
  51.               </menupopup>
  52.             </menulist>
  53.             <spacer flex="1" />
  54.           </hbox>
  55.           <hbox align="center" style="margin-left: 2em;">
  56.             <label value="&thumbnailPreferredMinimumSize.label;" id="windowThumbnailPreferredMinimumSizeLabel" flex="0" style="vertical-align: middle;"/>
  57.             <textbox id="windowThumbnailPreferredMinimumSize" size="4" preference="pref-windowThumbnailPreferredMinimumSize" />
  58.             <label value="&pixels.label;" id="windowThumbnailPreferredMinimumSizePixelsLabel" />
  59.             <spacer flex="1" />
  60.           </hbox>
  61.           <vbox align="start" style="margin-left: 2em;">
  62.             <checkbox id="windowAlwaysShowScrollbar" flex="0" label="&alwaysShowScrollbar.label;" preference="pref-windowAlwaysShowScrollbar"/>
  63.           </vbox>
  64.         </groupbox>
  65.         <groupbox>
  66.         <caption label="&options.caption;"/>
  67.           <vbox align="start">
  68.             <checkbox id="windowCustomColors" flex="0" label="&windowCustomColors.label;" preference="pref-windowCustomColors"  oncommand="windowCustomColorsChanged();"/>
  69.           </vbox>
  70.           <hbox style="margin-left: 2em; -moz-box-align: center;">
  71.             <label value="&windowCustomBackgroundColor.label;" id="windowCustomBackgroundColorLabel"/>
  72.             <colorpicker type="button" id="windowCustomBackgroundColor" palettename="standard" preference="pref-windowCustomBackgroundColor"/>
  73.             <spacer flex="1" />
  74.           </hbox>
  75.           <vbox align="start">
  76.             <checkbox id="windowCloseWhenParentFocus" flex="0" label="&windowCloseWhenParentFocus.label;" preference="pref-windowCloseWhenParentFocus" />
  77.           </vbox>
  78.           <vbox align="start">
  79.             <checkbox id="windowCloseWhenBlur" flex="0" label="&windowCloseWhenBlur.label;" preference="pref-windowCloseWhenBlur" />
  80.           </vbox>
  81.           <vbox align="start">
  82.             <checkbox id="windowCloseWhenSelect" flex="0" label="&windowCloseWhenSelect.label;" preference="pref-windowCloseWhenSelect" />
  83.           </vbox>
  84.           <vbox align="start">
  85.             <checkbox id="windowCloseWhenZeroThumbnails" flex="0" label="&windowCloseWhenZeroThumbnails.label;" preference="pref-windowCloseWhenZeroThumbnails" />
  86.           </vbox>
  87.           <vbox align="start">
  88.             <checkbox id="windowShowTitleStats" flex="0" label="&windowShowTitleStats.label;" preference="pref-windowShowTitleStats" />
  89.           </vbox>
  90.           <vbox align="start">
  91.             <checkbox id="windowShowOnlyCurrentByDefault" flex="0" label="&windowShowOnlyCurrentByDefault.label;" preference="pref-windowShowOnlyCurrentByDefault" />
  92.           </vbox>
  93.         </groupbox>
  94.         </tabpanel>
  95.         <tabpanel orient="vertical">
  96.     <groupbox>
  97.       <caption label="&windowPosition.caption;"/>
  98.     <hbox align="center">
  99.       <label value="&windowPosition.label;" control="windowPosition" />
  100.       <menulist flex="0" id="windowPosition" preference="pref-windowPosition">
  101.         <menupopup>
  102.           <menuitem value="4" label="&windowPosition.centerWindow;" />
  103.           <menuitem value="0" label="&windowPosition.centerContent;" />
  104.           <menuitem value="1" label="&windowPosition.centerScreen;" />
  105.           <menuitem value="2" label="&windowPosition.rememberLast;" />
  106.           <menuitem value="3" label="&windowPosition.rememberRelative;" />
  107.         </menupopup>
  108.       </menulist>
  109.       <spacer flex="1" />
  110.     </hbox>
  111.     </groupbox>
  112.     <groupbox>
  113.       <caption label="&windowSize.label;"/>
  114.       <hbox align="center">
  115.         <label value="&windowWidth.label;" control="windowWidth" />
  116.         <menulist flex="0" id="windowWidth" preference="pref-windowWidth" oncommand="windowWidthChanged();">
  117.           <menupopup>
  118.             <menuitem value="3" label="&windowWidth.relatedWindow;" />
  119.             <menuitem value="0" label="&windowWidth.relatedContent;" />
  120.             <menuitem value="1" label="&windowWidth.relatedScreen;" />
  121.             <menuitem value="2" label="&windowWidth.rememberLast;" />
  122.           </menupopup>
  123.         </menulist>
  124.         <spacer flex="1" />
  125.       </hbox>
  126.       <hbox style="margin-left: 2em;" flex="1">
  127.         <grid flex="1">
  128.           <columns>
  129.             <column />
  130.             <column />
  131.             <column />
  132.           </columns>
  133.           <rows>
  134.             <row align="center" flex="1">
  135.               <label value="&windowWidthPercentage.label;" id="windowWidthPercentageLabel"/>
  136.               <hbox align="center">
  137.                 <textbox id="windowWidthPercentage" size="3" preference="pref-windowWidthPercentage"/>
  138.                 <label value="%" id="windowWidthPercentageSymbolLabel"/>
  139.               </hbox>
  140.               <spacer flex="1" />
  141.             </row>
  142.             <row align="center" flex="1">
  143.               <label value="&windowWidthModifier.label;" id="windowWidthModifierLabel"/>
  144.               <textbox id="windowWidthModifier" size="4" preference="pref-windowWidthModifier"/>
  145.               <label value="&pixels.label;" flex="1" id="windowWidthModifierUnitLabel" />
  146.             </row>
  147.           </rows>
  148.         </grid>
  149.       </hbox>
  150.       <hbox align="center">
  151.         <label value="&windowHeight.label;" control="windowHeight"/>
  152.         <menulist flex="0" id="windowHeight" preference="pref-windowHeight" oncommand="windowHeightChanged();">
  153.           <menupopup>
  154.             <menuitem value="3" label="&windowHeight.relatedWindow;" />
  155.             <menuitem value="0" label="&windowHeight.relatedContent;" />
  156.             <menuitem value="1" label="&windowHeight.relatedScreen;" />
  157.             <menuitem value="2" label="&windowHeight.rememberLast;" />
  158.           </menupopup>
  159.         </menulist>
  160.         <spacer flex="1" />
  161.       </hbox>
  162.       <hbox style="margin-left: 2em;" flex="1">
  163.         <grid flex="1">
  164.           <columns>
  165.             <column />
  166.             <column />
  167.             <column />
  168.           </columns>
  169.           <rows>
  170.             <row align="center" flex="1">
  171.               <label value="&windowHeightPercentage.label;" id="windowHeightPercentageLabel"/>
  172.               <hbox align="center">
  173.                 <textbox id="windowHeightPercentage" size="3" preference="pref-windowHeightPercentage" />
  174.                 <label value="%" id="windowHeightPercentageSymbolLabel"/>
  175.               </hbox>
  176.               <spacer flex="1"/>
  177.             </row>
  178.             <row align="center" flex="1">
  179.               <label value="&windowHeightModifier.label;" id="windowHeightModifierLabel"/>
  180.               <textbox id="windowHeightModifier" size="4" preference="pref-windowHeightModifier" />
  181.               <label value="&pixels.label;" flex="1" id="windowHeightModifierUnitLabel"/>
  182.             </row>
  183.           </rows>
  184.         </grid>
  185.       </hbox>
  186.     </groupbox>
  187.         </tabpanel>
  188.       </tabpanels>
  189.     </tabbox>
  190.   </prefpane>
  191.  
  192. </overlay>